package org.yohann.ai.tool;

import lombok.AllArgsConstructor;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.yohann.ai.annotation.Tools;
import org.yohann.ai.pojo.BillingInfo;
import org.yohann.ai.service.BillingInfoService;
import org.yohann.ai.tool.base.BaseTools;

import java.util.List;

@Tools
@AllArgsConstructor
public class BillingInfoTools implements BaseTools {

    private final BillingInfoService service;

    @Tool(description = "获取用户账单信息")
    public List<BillingInfo> getUserBillingINfo(@ToolParam(description = "用户id") String userId) {
        return service.getUserBillingInfo(userId);
    }
}
